package com.syx.product.Controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("nacosConfig")
public class nacosConfig {

    @Value("${nacos.config}")
    private String nacosString;

    @RequestMapping("nacosConfig1")
    public void nacos(){
        System.out.println(nacosString);

    }

}
